CVE-2025-39978
octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
Description
In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free.
INFO
Published Date :
Oct. 15, 2025, 8:15 a.m.
Last Modified :
Oct. 16, 2025, 3:29 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Dereference new_node before queuing its free.
- Ensure RCU safety by reordering operations.
- Update the Linux kernel to the latest version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-39978
.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-39978
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-39978
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-39978
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-39978
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free. Added Reference https://git.kernel.org/stable/c/5723120423a753a220b8b2954b273838b9d7e74a Added Reference https://git.kernel.org/stable/c/a8a63f27c3a8a3714210d32b12fd0f16d0337414 Added Reference https://git.kernel.org/stable/c/c41b2941a024d4ec7c768e16ffb10a74b188fced Added Reference https://git.kernel.org/stable/c/d9c70e93ec5988ab07ad2a92d9f9d12867f02c56 Added Reference https://git.kernel.org/stable/c/df2c071061ed52d2225d97b212d27ecedf456b8a